﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Tester
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("This is the Test For CodePlex TFS Hosting Project");
            Manager manager = new Manager();
            Moduler moduler = new Moduler();
            manager.RetrievePlugins();
            moduler.RetrieveModules();
            moduler.LoadModules();
            Console.Write("\nIf You want to: \n1) Load One Plugin, Write it's Name\n2) Load All, Hit Enter\n3)Exit, Write Exit:\n|-->"); String Plugin = Console.ReadLine();
            if (Plugin.ToLower() == "exit")
            {
                return;
            }else if (Plugin.Length > 0)
            {
                manager.LoadPlugin(Plugin);
            }
            else
            {
                manager.LoadPlugins();
                moduler.UnLoadModules();
            }


            Console.Write("Press a key to exit"); Console.ReadKey();
        }
    }

}
